#include<bits/stdc++.h>
using namespace std;
const int N = 400400;
int n, a, b, k;
char s[N], p[N];
 
int main()
{
//	freopen("input.txt", "r", stdin);
//	freopen("output.txt", "w", stdout);
 
	scanf("%d%d%d", &a, &b, &k);
	n = a + b;
	for (int i = 0; i < n; i++)
		s[i] = p[i] = '0';
	s[n] = p[n] = '\0';
	if (k == 0) {
		for (int i = 0; i < b; i++)
			s[i] = p[i] = '1';
		printf("Yes\n%s\n%s\n", s, p);
		return 0;
	}
	if (a == 0 || b == 1) {
		printf("No\n");
		return 0;
	}
	if (k >= n - 1) {
		printf("No\n");
		return 0;
	}
	s[0] = p[0] = '1';
	s[1] = p[1 + k] = '1';
	b -= 2;
	for (int i = 2; b > 0 && i < n; i++) {
		if (i == 1 + k) continue;
		s[i] = p[i] = '1';
		b--;
	}
	printf("Yes\n%s\n%s\n", s, p);
 
	return 0;
}
